#include <stdint.h>
#include <stdio.h>

#define myarg(n) printf("%s = %d\n", #n, n);
struct s_demo{
    int32_t a;
    int32_t b;
    int32_t c;
    union {
      struct {
        int16_t c1;
        int16_t c2;
      };
      int32_t c3;
    };
    int16_t d;
    int16_t e;

};
struct s_demo demo = {0};

int main(void) {
    printf("size is %d\n", sizeof(struct s_demo));

    demo.c2 = 1;
    
    myarg(demo.c);
    myarg(demo.c1);
    myarg(demo.c2);
    myarg(demo.c3);
}

